﻿using System;
using System.Xml;

namespace LOMM3API
{
    [Serializable()]
    public abstract class GameCommand
    {
        public GameCommandTemplate Template {get; private set;}
        public abstract bool Initialize(GameCommandTemplate template, XmlReader xmlConfig);

        public String Name    {get; private set;}
        public String Tooltip {get; private set;}
        
        public virtual bool ReadConfiguration(XmlReader xml) {return true;}
        public virtual bool SaveConfiguration(XmlWriter xml) {return true;}

        public abstract bool Execute();
    }
}
